/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const customerserviceRouter = {
  path: '/customerservice',
  component: Layout,
  redirect: '/table/complex-table',
  name: '客服中心',
  meta: {
    title: '客服中心',
    icon: 'table'
  },
  children: [
    {
      path: 'evaluation',
      component: () => import('@/views/customerservice/evaluation/index'),
      name: '工单评分一览',
      meta: { title: '工单评分一览' }
    },
    {
      path: 'information',
      component: () => import('@/views/customerservice/information/index'),
      props: (route) => ({ query: route.query.cusInfoNumber }),
      name: '信息单一览',
      meta: { title: '信息单一览' }
    },
    {
      path: 'informationLeader',
      component: () => import('@/views/customerservice/information/informationleader/index'),
      name: '信息单一览',
      meta: { title: '信息单一览' }
    },
    {
      path: 'kfseattable',
      component: () => import('@/views/customerservice/kfSeatTable/index'),
      name: '跟单客服管理',
      meta: { title: '跟单客服管理' }
    },
    {
      path: 'servicestar',
      component: () => import('@/views/customerservice/servicestar/index'),
      name: '服务星客户',
      meta: { title: '服务星客户' }
    },

    {
      path: 'evaluationtag',
      component: () => import('@/views/customerservice/evaluation/evaluationtag/index'),
      name: '评价标签管理',
      meta: { title: '评价标签管理' }
    },
    {
      path: 'servicestarManager',
      component: () => import('@/views/customerservice/servicestarManager/index'),
      name: '服务星管理(主管)',
      meta: { title: '服务星管理(主管)' }
    }
  ]
}
export default customerserviceRouter
